package com.qfedu.openplateform.order.controller;

import com.qfedu.openplateform.common.entity.PopOrderData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lileijian
 * @create 2021-12-05 0:55
 */
@RestController
public class OrderController {

    /**
     * 生成订单
     */
    @RequestMapping("/createOrder")
    //要修改订单号id  商家id 不重复
    public String createOrder(@RequestBody PopOrderData popOrderData){
//        popOrderDataService.createOrder( popOrderData);  生成订单业务自己实现
        System.out.println(popOrderData);
        return "ok";
    }

}
